home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Languages / MPW Oberon 2.1168 / OInterfaces / ROMDefs.mod < prev    next >
Encoding:
Text File  |  1995-08-07  |  10.1 KB  |  240 lines  |  [TEXT/MPS ]

  1. (*
  2.      File:        ROMDefs.mod
  3.  
  4.      Contains:    NuBus card ROM Definitions.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Package:    Universal Interfaces 2.0 in “MPW Latest” on ETO #17
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs.applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. *)
  19.  
  20. (*$TAGS-*)
  21. (*$CALLING PASCAL*)
  22. MODULE ROMDefs;
  23.  
  24.  
  25. (* $PUSH*)
  26. (* $ALIGN MAC68K*)
  27. (* $LibExport+*)
  28.  
  29. CONST
  30.     appleFormat*                    = 1;                            (*Format of Declaration Data (IEEE will assign real value)*)
  31.     romRevision*                    = 1;                            (*Revision of Declaration Data Format*)
  32.     romRevRange*                    = 9;                            (*Revision of Declaration Data Format [1..9]*)
  33.     testPattern*                    = 1519594439;                    (*FHeader long word test pattern*)
  34.     sCodeRev*                    = 2;                            (*Revision of code (For sExec)*)
  35.     sExec2*                        = 2;
  36.     sCPU68000*                    = 1;                            (*CPU type* = 68000*)
  37.     sCPU68020*                    = 2;                            (*CPU type* = 68020*)
  38.     sCPU68030*                    = 3;                            (*CPU type* = 68030*)
  39.     sCPU68040*                    = 4;                            (*CPU type* = 68040*)
  40.     sMacOS68000*                    = 1;                            (*Mac OS, CPU type* = 68000*)
  41.     sMacOS68020*                    = 2;                            (*Mac OS, CPU type* = 68020*)
  42.     sMacOS68030*                    = 3;                            (*Mac OS, CPU type* = 68030*)
  43.     sMacOS68040*                    = 4;                            (*Mac OS, CPU type* = 68040*)
  44.     board*                        = 0;                            (*Board sResource - Required on all boards*)
  45.     displayVideoAppleTFB*        = 16843009;                        (*Video with Apple parameters for TFB card.*)
  46.     displayVideoAppleGM*            = 16843010;                        (*Video with Apple parameters for GM card.*)
  47.     networkEtherNetApple3Com*    = 33620225;                        (*Ethernet with apple parameters for 3-Comm card.*)
  48.     testSimpleAppleAny*            = -2147417856;                    (*A simple test sResource.*)
  49.     endOfList*                    = 255;                            (*End of list*)
  50.     defaultTO*                    = 100;                            (*100 retries.*)
  51.  
  52. (* sResource flags for sRsrc_Flags *)
  53.     fOpenAtStart*                = 1;                            (* set => open the driver at start time, else do not *)
  54.     f32BitMode*                    = 2;                            (* set => a 32-bit address will be put into dctlDevBase (IM Devices 2-54) *)
  55.  
  56.     sRsrcType*                    = 1;                            (*Type of sResource*)
  57.     sRsrcName*                    = 2;                            (*Name of sResource*)
  58.     sRsrcIcon*                    = 3;                            (*Icon*)
  59.     sRsrcDrvrDir*                = 4;                            (*Driver directory*)
  60.     sRsrcLoadDir*                = 5;                            (*Load directory*)
  61.     sRsrcBootRec*                = 6;                            (*sBoot record*)
  62.     sRsrcFlags*                    = 7;                            (*sResource Flags*)
  63.     sRsrcHWDevId*                = 8;                            (*Hardware Device Id*)
  64.     minorBaseOS*                    = 10;                            (*Offset to base of sResource in minor space.*)
  65.     minorLength*                    = 11;                            (*Length of sResource’s address space in standard slot space.*)
  66.     majorBaseOS*                    = 12;                            (*Offset to base of sResource in Major space.*)
  67.     majorLength*                    = 13;                            (*Length of sResource in super slot space.*)
  68.     sRsrcTest*                    = 14;                            (*sBlock diagnostic code*)
  69.     sRsrccicn*                    = 15;                            (*Color icon*)
  70.     sRsrcicl8*                    = 16;                            (*8-bit (indexed) icon*)
  71.     sRsrcicl4*                    = 17;                            (*4-bit (indexed) icon*)
  72.     sDRVRDir*                    = 16;                            (*sDriver directory*)
  73.     sGammaDir*                    = 64;                            (*sGamma directory*)
  74.     sRsrcVidNames*                = 65;                            (*Video mode name directory*)
  75.     sRsrcDock*                    = 80;                            (*spID for Docking Handlers*)
  76.     sDiagRec*                    = 85;                            (*spID for board diagnostics*)
  77.     sVidAuxParams*                = 123;                            (*more video info for Display Manager -- timing information*)
  78.     sDebugger*                    = 124;                            (*DatLstEntry for debuggers indicating video anamolies*)
  79.     sVidAttributes*                = 125;                            (*video attributes data field (optional,word)*)
  80.     fLCDScreen*                    = 0;                            (* bit 0 - when set is LCD, else is CRT*)
  81.     fBuiltInDisplay*                = 1;                            (*      1 - when set is built-in (in the box) display, else not*)
  82.     fDefaultColor*                = 2;                            (*      2 - when set display prefers multi-bit color, else gray*)
  83.     fActiveBlack*                = 3;                            (*      3 - when set black on display must be written, else display is naturally black*)
  84.     fDimMinAt1*                    = 4;                            (*      4 - when set should dim backlight to level 1 instead of 0*)
  85.     fBuiltInDetach*                = 4;                            (*      4 - when set is built-in (in the box), but detaches*)
  86.     sVidParmDir*                    = 126;
  87.     sSuperDir*                    = 254;
  88.  
  89. (* =======================================================================    *)
  90. (* sResource types                                                            *)
  91. (* =======================================================================    *)
  92.     catBoard*                    = $0001;                        (*Category for board types.*)
  93.     catTest*                        = $0002;                        (*Category for test types -- not used much.*)
  94.     catDisplay*                    = $0003;                        (*Category for display (video) cards.*)
  95.     catNetwork*                    = $0004;                        (*Category for Networking cards.*)
  96.     catScanner*                    = $0008;                        (*scanners bring in data somehow*)
  97.     catCPU*                        = $000A;
  98.     catIntBus*                    = $000C;
  99.     catProto*                    = $0011;
  100.     catDock*                        = $0020;
  101. (*<Type>*)
  102.     typeBoard*                    = $0000;
  103.     typeApple*                    = $0001;
  104.     typeVideo*                    = $0001;
  105.     typeEtherNet*                = $0001;
  106.     typeStation*                    = $0001;
  107.     typeDesk*                    = $0002;
  108.     typeDSP*                        = $0004;
  109.     typeXPT*                        = $000B;
  110.     typeSIM*                        = $000C;
  111.     typeDebugger*                = $0100;
  112.     type68000*                    = $0002;
  113.     type68020*                    = $0003;
  114.     type68030*                    = $0004;
  115.     type68040*                    = $0005;
  116.     type601*                        = $0025;
  117.     type603*                        = $002E;
  118.     typeAppleII*                    = $0015;
  119. (*Driver Interface : <id.SW>*)
  120.     drSwMacCPU*                    = 0;
  121.     drSwAppleIIe*                = $0001;
  122.     drSwApple*                    = 1;                            (*To ask for or define an Apple-compatible SW device.*)
  123.     drSwMacsBug*                    = $0104;
  124. (*Driver Interface : <id.SW><id.HW>*)
  125.     drHwTFB*                        = 1;                            (*HW AIFF.ID for the TFB (original Mac II) video card.*)
  126.     drHw3Com*                    = 1;                            (*HW AIFF.ID for the Apple EtherTalk card.*)
  127.     drHwBSC*                        = 3;
  128.     drHwGemini*                    = 1;
  129.     drHwDeskBar*                    = 1;
  130.     drHwATT3210*                    = $0001;
  131.     drHwBootBug*                    = $0100;
  132. (* video hardware id's  - <catDisplay><typVideo>*)
  133.     drHwRBV*                        = $0018;
  134.     drHwJMFB*                    = $0019;
  135.     drHwElsie*                    = $001A;
  136.     drHwTim*                        = $001B;
  137.     drHwDAFB*                    = $001C;
  138.     drHwGSC*                        = $001E;
  139.     drHwDAFBPDS*                    = $001F;
  140.     drHWVSC*                        = $0020;
  141.     drHwApollo*                    = $0021;
  142.     drHwSonora*                    = $0022;
  143.     drHwReserved2*                = $0023;
  144.     drHwColumbia*                = $0024;
  145.     drHwCivic*                    = $0025;
  146.     drHWPBLCD*                    = $0027;
  147.     drHWCSC*                        = $0028;
  148.     drHwJET*                        = $0029;
  149.     drHWMEMCjr*                    = $002A;
  150.     drHwValkyrie*                = $002E;
  151.     drHWATI*                        = $0055;
  152. (* other drHW id's for built-in functions*)
  153.     drHwSonic*                    = $0110;
  154.     drHwMace*                    = $0114;
  155.     drHwDblExp*                    = $0001;
  156. (* CPU board IDs - <catBoard> <typBoard> <0000> <0000>*)
  157.     MIIBoardId*                    = $0010;                        (*Mac II Board AIFF.ID*)
  158.     ciVidBoardID*                = $001F;                        (*Aurora25 board AIFF.ID*)
  159.     CX16VidBoardID*                = $0020;                        (*Aurora16 board AIFF.ID*)
  160.     MIIxBoardId*                    = $0021;                        (*Mac IIx Board AIFF.ID*)
  161.     SE30BoardID*                    = $0022;                        (*Mac SE/30 Board AIFF.ID*)
  162.     MIIcxBoardId*                = $0023;                        (*Mac IIcx Board AIFF.ID*)
  163.     MIIfxBoardId*                = $0024;                        (*F19 board AIFF.ID*)
  164.     EricksonBoardID*                = $0028;                        (**)
  165.     ElsieBoardID*                = $0029;                        (**)
  166.     TIMBoardID*                    = $002A;                        (**)
  167.     EclipseBoardID*                = $002B;                        (**)
  168.     SpikeBoardID*                = $0033;                        (**)
  169.     DBLiteBoardID*                = $0035;                        (**)
  170.     ZydecoBrdID*                    = $0036;                        (**)
  171.     ApolloBoardID*                = $0038;                        (**)
  172.     PDMBrdID*                    = $0039;                        (**)
  173.     VailBoardID*                    = $003A;                        (**)
  174.     WombatBrdID*                    = $003B;                        (**)
  175.     ColumbiaBrdID*                = $003C;                        (**)
  176.     CycloneBrdID*                = $003D;                        (**)
  177.     CompanionBrdID*                = $003E;                        (**)
  178.     DartanianBoardID*            = $0040;                        (**)
  179.     DartExtVidBoardID*            = $0046;                        (**)
  180.     HookBoardID*                    = $0047;                        (*Hook internal video board AIFF.ID*)
  181.     EscherBoardID*                = $004A;                        (*Board AIFF.ID for Escher (CSC)*)
  182.     POBoardID*                    = $004D;                        (*Board AIFF.ID for Primus/Optimus/Aladdin*)
  183.     TempestBrdID*                = $0050;                        (*Non-official Board AIFF.ID for Tempest*)
  184.     BlackBirdBdID*                = $0058;                        (*Board AIFF.ID for BlackBird*)
  185.     BBExtVidBdID*                = $0059;                        (*Board AIFF.ID for BlackBird built-in external video*)
  186.     YeagerBoardID*                = $005A;                        (*Board AIFF.ID for Yeager*)
  187.     BBEtherNetBdID*                = $005E;                        (*Board AIFF.ID for BlackBird Ethernet board*)
  188.     TELLBoardID*                    = $0065;                        (*Board AIFF.ID for TELL (Valkyrie)*)
  189.     MalcolmBoardID*                = $065E;                        (*Board AIFF.ID for Malcolm*)
  190.     AJBoardID*                    = $065F;                        (*Board AIFF.ID for AJ*)
  191.     M2BoardID*                    = $0660;                        (*Board AIFF.ID for M2*)
  192.     OmegaBoardID*                = $0661;                        (*Board AIFF.ID for Omega*)
  193. (* other board IDs*)
  194.     BoardIDDblExp*                = $002F;
  195.     DAFBPDSBoardID*                = $0037;
  196.     MonetBoardID*                = $0048;
  197.     SacSONIC16BoardID*            = $004E;
  198.     SacSONIC32BoardID*            = $004F;
  199. (* CPU board types - <CatCPU> <Typ680x0> <DrSwMacCPU>*)
  200.     drHWMacII*                    = $0001;                        (*Mac II hw AIFF.ID*)
  201.     drHwMacIIx*                    = $0002;                        (*Mac IIx hw AIFF.ID*)
  202.     drHWSE30*                    = $0003;                        (*Mac SE/30 hw AIFF.ID*)
  203.     drHwMacIIcx*                    = $0004;                        (*Mac IIcx hw AIFF.ID*)
  204.     drHWMacIIfx*                    = $0005;                        (*Mac IIfx hw AIFF.ID*)
  205.     drHWF19*                        = $0005;                        (*F19 hw AIFF.ID*)
  206.     sBlockTransferInfo*            = 20;                            (*general slot block xfer info*)
  207.     sMaxLockedTransferCount*        = 21;                            (*slot max. locked xfer count*)
  208.     boardId*                        = 32;                            (*Board Id*)
  209.     pRAMInitData*                = 33;                            (*sPRAM init data*)
  210.     primaryInit*                    = 34;                            (*Primary init record*)
  211.     timeOutConst*                = 35;                            (*Sound.Time out constant*)
  212.     vendorInfo*                    = 36;                            (*Vendor information List. See Vendor List, below*)
  213.     boardFlags*                    = 37;                            (*Board Flags*)
  214.     secondaryInit*                = 38;                            (*Secondary init record/code*)
  215. (* The following Id's are associated with all CPU sResources.*)
  216.     MajRAMSp*                    = 129;                            (*AIFF.ID of Major RAM space.*)
  217.     MinROMSp*                    = 130;                            (*AIFF.ID of Minor ROM space.*)
  218.     vendorId*                    = 1;                            (*Vendor Id*)
  219.     serialNum*                    = 2;                            (*Serial number*)
  220.     revLevel*                    = 3;                            (*Revision level*)
  221.     partNum*                        = 4;                            (*Part number*)
  222.     date*                        = 5;                            (*Last revision date of the card*)
  223.  
  224.     testByte*                    = 32;                            (*Test byte.*)
  225.     testWord*                    = 33;                            (*0021*)
  226.     testLong*                    = 34;                            (*Test Long.*)
  227.     testString*                    = 35;                            (*Test String.*)
  228.  
  229. (* sResource List. Category*: Display        Type*: Video *)
  230. (* The following Id's are common to all Mode sResources in Display_Video *)
  231. (* functional sResources. *)
  232.     mBlockTransferInfo*            = 5;                            (* slot block xfer info PER MODE *)
  233.     mMaxLockedTransferCount*        = 6;                            (* slot max. locked xfer count PER MODE *)
  234.  
  235.  
  236. (* $ALIGN RESET*)
  237. (* $POP*)
  238.  
  239.  END ROMDefs.
  240.